/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.pa165.languageschoolservice.service;


import com.pa165.languageschoolpersistence.Exceptions.IllegalArgumentPersistenceException;
import com.pa165.languageschoolpersistence.Exceptions.ServiceFailureException;
import com.pa165.languageschoolservice.DTO.LectorDTO;
import com.pa165.languageschoolservice.DTO.LectureDTO;
import java.util.List;

/**
 *
 * @author Elena Medvedeva
 */
public interface LectorService {  

    public LectorDTO get(Long id) throws  IllegalArgumentPersistenceException;

    public LectorDTO add(LectorDTO lectorDTO) throws ServiceFailureException;

    public void remove(LectorDTO lectorDTO) throws  IllegalArgumentPersistenceException;

    public LectorDTO modify(LectorDTO lectorDTO) throws ServiceFailureException;

    public List<LectorDTO> getAll();

    public List<LectorDTO> findByName(String name) throws  IllegalArgumentPersistenceException;

    public LectureDTO enrollLecture(LectureDTO lectureDTO, LectorDTO lectorDTO) throws ServiceFailureException;
}
